﻿using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BillMgr.Utils
{
    public static class ConnectionCreater
    {
        private static String ConnectionString = null;
        /// <summary>
        /// 连接对象属性
        /// </summary>
        public static MySqlConnection GetConnection()
        {
            return new MySqlConnection(ConnectionString);
        }
        /// <summary>s
        /// 返回连接池
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public static void SetConnection(String path)
        {
            ConnectionString = "Server=IP;Database=myDataBase;Uid=myUsername;Pwd=myPassword;";
        }
    }
}
